package com.jtpay.unionpay.product.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * File: RemoteModel.java
 * Author: Administrator
 * Create: 2018/07/31 13:37
 */
public class RemoteModel implements Parcelable {
    private String OrderId;
    private String TradeMoney;

    @Override
    public String toString() {
        return "RemoteModel{" +
                "OrderId='" + OrderId + '\'' +
                ", TradeMoney='" + TradeMoney + '\'' +
                '}';
    }

    public String getOrderId() {
        return OrderId;
    }

    public void setOrderId(String orderId) {
        OrderId = orderId;
    }

    public String getTradeMoney() {
        return TradeMoney;
    }

    public void setTradeMoney(String tradeMoney) {
        TradeMoney = tradeMoney;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.OrderId);
        dest.writeString(this.TradeMoney);
    }

    public RemoteModel() {
    }

    protected RemoteModel(Parcel in) {
        this.OrderId = in.readString();
        this.TradeMoney = in.readString();
    }

    public static final Parcelable.Creator<RemoteModel> CREATOR = new Parcelable.Creator<RemoteModel>() {
        @Override
        public RemoteModel createFromParcel(Parcel source) {
            return new RemoteModel(source);
        }

        @Override
        public RemoteModel[] newArray(int size) {
            return new RemoteModel[size];
        }
    };

}
